package com.jspgou.cms.manager;

import java.util.List;
import java.util.Map;

import com.jspgou.cms.entity.Payment;

public interface PaymentMng {
	public List<Payment> getListForCart(Long webId);

	public List<Payment> getList(Long webId, boolean all);

	public List<Payment> getByCode(String code, Long webId);

	public Payment findById(Long id);
	
	public Payment findByCode(String code);

	public Payment save(Payment bean, Map<String, String> cfg);

	public Payment update(Payment bean, Map<String, String> cfg);

	public Payment deleteById(Long id);

	public Payment[] deleteByIds(Long[] ids);
	
	/**
	 * 更新排列顺序
	 */
	public Payment[] updatePriority(Long[] ids, Integer[] priority);
}